package com.xcc.httpUtils.request;

import okhttp3.Request;
import okhttp3.RequestBody;

import java.util.Map;

/**
 * Created by Carman
 * <p>
 * Date: 2018/3/30 - 18:42
 * <p>
 * 描述:
 */
public class PutRequest extends PostRequest {

    /**
     * @param url               url
     * @param tag               标记
     * @param params            参数
     * @param headers           headers
     */
    public PutRequest(String url, Object tag, Map<String, String> params, Map<String, String> headers, String json) {
        super(url, tag, params, headers, json);
    }


    @Override
    protected Request buildRequest(RequestBody requestBody) {
        return builder.put(requestBody).build();
    }
}
